From: Sebastian Keller Date: Sat, 21 Feb 2026 11:32:26 +0000 (+0100) Subject: appDisplay: Consider admin defined folders before creating default ones X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~26^2~1^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4b1d80383c84e2eb12a458c7a41f672d5feb2dfc;p=gnome-shell.git appDisplay: Consider admin defined folders before creating default ones The system administrator might have defined some default folders system wide via dconf default values, so checking for user defined values is not enough. This restores the condition to also skip creating default ones if the value is not empty. It still skips the creation of default folders if the empty value was the result of a user action to allow users deleting all folders. Fixes: b0d396c82 ("appDisplay: Only create default folders on the first start") Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9062 Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a1de2a87d..8430cb985 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1400,7 +1400,8 @@ class AppDisplay extends BaseAppView { } _ensureDefaultFolders() { - if (this._folderSettings.get_user_value('folder-children') !== null) + if (this._folderSettings.get_user_value('folder-children') !== null || + this._folderSettings.get_strv('folder-children').length > 0) return; const appSys = Shell.AppSystem.get_default();